﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Net;
using System.Net.Http;
using System.Web.Http;
using TinCan.LRS.Web.Filters;

namespace TinCan.LRS.Web.Controllers
{
    public class StateController : xApiController
    {
        // GET api/state
        public IEnumerable<string> Get()
        {
            return new string[] { "value1", "value2" };
        }

        // GET api/state/5
        public string Get(string activityId, dynamic actor, Guid? registration = null, DateTime? since = null)
        {
            return "value";
        }

        // POST api/state
        public HttpResponseMessage Post([FromBody]string value)
        {
            var response = Request.CreateResponse(HttpStatusCode.NoContent);
            return response;
        }

        // PUT api/state/5
        public HttpResponseMessage Put(string activityId, dynamic actor, string stateId, Guid? registration = null)
        {
            var response = Request.CreateResponse(HttpStatusCode.NoContent);
            return response;
        }

        // DELETE api/state/5
        public HttpResponseMessage Delete(int id)
        {
            var response = Request.CreateResponse(HttpStatusCode.NoContent);
            return response;
        }

    }
}
